package hp.com.entity;

public class Users {
    private int id;                 // 用户id
    private String loginname;       // 用户名
    private String pwd;             // 密码
    private String email;           // 邮箱
    private String phone;           // 手机
    private int usertype;        // 用户等级
    private String pic_link;        // 用户头像

    public String getUserTypeText() {
        return userTypeText;
    }

    public void setUserTypeText(String userTypeText) {
        this.userTypeText = userTypeText;
    }

    private String userTypeText;//用户等级文字

    public Users() {

    }

    public Users(String phone, String pwd) {
        this.phone = phone;
        this.pwd = pwd;
    }

    public Users(String loginname, String pwd, String email, String phone, int usertype) {
        this.loginname = loginname;
        this.pwd = pwd;
        this.email = email;
        this.phone = phone;
        this.usertype = usertype;
    }

    public Users(int id, String loginname, String pwd, String email, String phone, int usertype, String pic_link) {
        this.id = id;
        this.loginname = loginname;
        this.pwd = pwd;
        this.email = email;
        this.phone = phone;
        this.usertype = usertype;
        this.pic_link = pic_link;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPic_link() {
        return pic_link;
    }

    public void setPic_link(String pic_link) {
        this.pic_link = pic_link;
    }

    public String getLoginname() {
        return loginname;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getUsertype() {
        return usertype;
    }

    public void setUsertype(int usertype) {
        this.usertype = usertype;
    }

    @Override
    public String toString() {
        return "Users{" +
                ", loginname='" + loginname + '\'' +
                ", pwd='" + pwd + '\'' +
                ", email='" + email + '\'' +
                ", phone='" + phone + '\'' +
                ", usertype='" + usertype + '\'' +
                '}';
    }
}
